import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
	name: [{ required: true, message: "角色名称为必填项", trigger: "blur" }],
	dataPermission: [{ required: true, message: "数据权限为必填项", trigger: "change" }],
	remarks: [{ required: true, message: "备注为必填项", trigger: "blur" }],
	// menuIds: [{ required: true, message: "角色菜单为必填项", trigger: "change" }]
});